﻿using Coldairarrow.Util;
using Coldairarrow.Util.DTO.OnlineChat;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.IBusiness.BTB_StaffUsers
{
    public interface ICServiceOnlineChatBusiness
    {
        Task GetUserNewOrderCountAsync(List<string> uIds, int count, string checkStr);

        Task UserGetUnReadCountAsync(ClassIdDTO input);

        Task UpdateRoomListAsync(int classId);

        Task<ChatLogListDTO> GetCServiceMessageLogAsync(GetMassageDTO input);

        Task CServiceSendMessageAsync(UserSendChatDTO input);

        Task<object> GetRoomUserInfoAsync(IdInputDTO input);

        Task DelRoomAsync(string roomId);
    }

    public class ClassIdDTO
    { 
        public int ClassId { set; get; } = 0;
    }

    public class SendOrderCountDTO
    { 
        /// <summary>
        /// 接收用户列表
        /// </summary>
        public List<string> UserIds { get; set; }

        /// <summary>
        /// 新订单数量
        /// </summary>
        public int OrderCount { get; set; }
        
        /// <summary>
        /// 验签
        /// </summary>
        public string CheckStr { get; set; }
    }

    public class CheckDTO
    {

        public string UserName { set; get; }

        public string PassWord { set; get; }

        public DateTime Time { set; get; }
    }
}
